//
//  XQInitManager.swift
//  Spark Peso
//
//  Created by 小琦 on 2025/2/3.
//

import UIKit

class XQInitManager: NSObject {
    
    static let shared = XQInitManager()
    
    private override init() {}
    
    var model : XQInitModel?
    
    
    func popLocation() -> Bool {
        return model?.decreasing == 1
    }
    
    func isLogin() -> Bool {
        return XQCache.getSessionId().count != 0
    }
    
    func phoneCode() -> Int? {
        return model?.performing?.technicians
    }
    
    func loginProtocol() -> String {
        return model?.firing ?? ""
    }
}
